dataSourceConfigApp.service('dataSourceConfigService', ['$http', '$q', 'baseService',
    function ($http, $q, baseService) {
        return {
            add: function (user) {
                var url = _ctx + '/dataSourceConfig/add';
                return baseService.post(url, user);
            },
            delete: function (json) {
                var url = _ctx + '/dataSourceConfig/delete';
                return baseService.post(url, json);
            },
            resetPwd: function (json) {
                var url = _ctx + '/dataSourceConfig/resetPwd';
                return baseService.post(url, json);
            },
            edit: function (user) {
                var url = _ctx + '/dataSourceConfig/edit';
                return baseService.post(url, user);
            },
            detail: function (id) {
                var url = _ctx + '/dataSourceConfig/detail';
                return baseService.post(url, id);
            }
        }
    }
]);
